package cn.kgc.watch.mapper;
import cn.kgc.watch.entity.CommoditySpu;
import cn.kgc.watch.entity.Specification;
import cn.kgc.watch.entity.vo.PageInfoVo;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

import  java.util.*;
public interface CommoditySpuMapper {
    //添加
    void insert(CommoditySpu commoditySpu);
    //获取全部商品信息
    List<CommoditySpu> selectAll(@Param("specification") Specification specification);

    List<CommoditySpu> selectPage(PageInfoVo pageInfoVo);

    CommoditySpu selectById(Integer id);
}